list = [1, 65, 3, 77, 3, 99, 23]

n = int(input("请输入数字："))

list.append(n)
list.sort()
print(list)
